
using System;
using CookComputing.XmlRpc;

namespace NMollom.Internal {
    /// <summary>
    /// The parameter bag for requesting statistics from Mollom.
    /// </summary>
    public class GetStatisticsParams : Params {
        public string type = "";

        /// <summary>
        /// Creates a new GetStatisticsParams object. 
        /// </summary>
        /// <param name="auth">The authentication to use.</param>
        /// <param name="type">The type of statistic to request.</param>
        public GetStatisticsParams(Authentication auth, StatisticType type)
            : base(auth) {
            this.type = MollomTypeConvertor.ToMollomStatisticType(type);
        }
    }
}